package top.xchch.aop.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	
	public static void main(String[] args) {
		
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationcontext-xml.xml");
		ArithmeticCalculator arithmeticCalculator = (ArithmeticCalculator) context.getBean("arithmeticCalculator");
		
		int result = arithmeticCalculator.add(3, 6);
		System.out.println("--> " + result);
		
		result = arithmeticCalculator.div(30, 7);
		System.out.println("--> " + result);
	}
}
